package com.example.musictutor.adapters;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import com.example.musictutor.fragments.HeinrichFragment;
import com.example.musictutor.fragments.TyroneFragment;

/**
 * Created by ironhulk on 2014/05/06.
 */
public class AboutUsPageAdapter extends FragmentPagerAdapter {

    public AboutUsPageAdapter(FragmentManager fm){
        super(fm);
    }

    @Override
    public Fragment getItem(int i) {
        switch (i) {
            case 0:
                // Top Rated fragment activity
                return new HeinrichFragment();
            case 1:
                // Games fragment activity
                return new TyroneFragment();
        }
        return null;
    }

    @Override
    public int getCount() {
        return 2;
    }
}
